package com.jumi.microservice.controller.inner;


import com.jm.member.common.api.web.R;
import com.jumi.microservice.service.IJmUserLevelConfigService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RequestMapping("/inner/level")
@RestController
@Api(value = "内部调用--会员等级",tags = "内部调用--会员等级")
public class InnerJmUserLevelConfigController {
    //s/ -\([^        I][^    I]*\)j/ -\1 -j/

    @Autowired
    IJmUserLevelConfigService configService;

    @GetMapping("/getLevelConfig")
    public R<List<Map<String, Object>>> getLevelConfig(){
        List<Map<String, Object>> maps = configService.listMaps();
        return R.ok(maps);
    }
}
